/*
 * @Author: wujian
 * @Date: 2023-04-26 17:12:20
 * @LastEditors: wujian
 * @LastEditTime: 2023-08-22 09:05:28
 * @FilePath: \scada\src\utils\hook\useCurrentInstance.ts
 * @Description:
 * @email: 281919544@qq.com
 * Copyright (c) 2023 by wujian, All Rights Reserved.
 */
import { ComponentInternalInstance, getCurrentInstance } from 'vue';
export default function useCurrentInstance() {
	const { appContext } = getCurrentInstance() as ComponentInternalInstance;
	const proxy = appContext.config.globalProperties;
	return { proxy };
}
